def func():
    try:
        num = int(input("输入数字"))
        print(num)
        return 1
    except ValueError as err:
        print(err)
        return 2
    else:
        # return后这里不会进入
        print("进来了吗")
    finally:
        print("aaaaaa")


res = func()
print(res)
